/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package my.cbr.database.model;

import jcolibri.cbrcore.Attribute;
import jcolibri.cbrcore.CaseComponent;

/**
 *
 * @author Marte
 */
public class SpeciesOrigin implements CaseComponent {

    private Integer speciesID;
    private String speciesName;
    private AquacultureProdUnit aquacultureProdUnit;

    public SpeciesOrigin() {
    }

    public SpeciesOrigin(String speciesName) {
        this.speciesName = speciesName;
    }


    public AquacultureProdUnit getAquacultureProdUnit() {
        return aquacultureProdUnit;
    }

    public void setAquacultureProdUnit(AquacultureProdUnit aquacultureProdUnit) {
        this.aquacultureProdUnit = aquacultureProdUnit;
    }

    public Integer getSpeciesID() {
        return speciesID;
    }

    public void setSpeciesID(Integer speciesID) {
        this.speciesID = speciesID;
    }

    public String getSpeciesName() {
        return speciesName;
    }

    public void setSpeciesName(String speciesName) {
        this.speciesName = speciesName;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final SpeciesOrigin other = (SpeciesOrigin) obj;
        if ((this.speciesName == null) ? (other.speciesName != null) : !this.speciesName.equals(other.speciesName)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 29 * hash + (this.speciesName != null ? this.speciesName.hashCode() : 0);
        return hash;
    }

    public Attribute getIdAttribute() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
